home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
dev
/
c
/
asyncio.lha
/
AsyncIO
/
src
/
AsyncLib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-27
|
584b
|
40 lines
#include <proto/exec.h>
#include <proto/asyncio.h>
void __regargs __autoopenfail( char * );
struct Library *AsyncIOBase;
static void *libbase;
extern long __oslibversion;
extern long __asiolibversion;
LONG
_STI_110_OpenAsyncIO( VOID )
{
AsyncIOBase = libbase = OpenLibrary( "asyncio.library", __asiolibversion );
if( AsyncIOBase == NULL )
{
__oslibversion = __asiolibversion;
__autoopenfail( "asyncio.library" );
return( 1 );
}
return( 0 );
}
VOID
_STD_110_CloseAsyncIO( VOID )
{
if( libbase )
{
CloseLibrary( libbase );
libbase = AsyncIOBase = NULL;
}
}